set terminal png

set output "doc/gfx/karatsuba_threshold_counts.png"
set ylabel "Counts"
set xlabel "Number of Limbs"
set title "Instruction and Cycle Counts Around MUL_KARATSUBA_THRESHOLD"
plot "bin/basecase_kthreshold.dat" using 2:3 title "Basecase Instruction Count" with linespoints,"bin/basecase_kthreshold.dat" using 2:4 title "Basecase Cycle Count" with linespoints,"bin/karatsuba_kthreshold.dat" using 2:3 title "Karatsuba Instruction Count" with linespoints,"bin/karatsuba_kthreshold.dat" 2:4 title "Karatsuba Cycle Count" with linespoints

set output "doc/gfx/toom3_threshold_counts.png"
set ylabel "Counts"
set xlabel "Number of Limbs"
set title "Instruction and Cycle Counts Around MUL_TOOM3_THRESHOLD"
plot "bin/karatsuba_tthreshold.dat" using 2:3 title "Karatsuba Instruction Count" with linespoints,"bin/karatsuba_tthreshold.dat" using 2:4 title "Karatsuba Cycle Count" with linespoints,"bin/toom3_tthreshold.dat" using 2:3 title "Toom-3 Instruction Count" with linespoints,"bin/toom3_tthreshold.dat" 2:4 title "Toom-3 Cycle Count" with linespoints

set output "doc/gfx/fft_threshold_counts.png"
set ylabel "Counts"
set xlabel "Number of Limbs"
set title "Instruction and Cycle Counts Around MUL_FFT_THRESHOLD"
plot "bin/toom3_fthreshold.dat" using 2:3 title "Toom-3 Instruction Count" with linespoints,"bin/toom3_fthreshold.dat" using 2:4 title "Toom-3 Cycle Count" with linespoints,"bin/fft_fthreshold.dat" using 2:3 title "FFT Instruction Count" with linespoints,"bin/fft_fthreshold.dat" 2:4 title "FFT Cycle Count" with linespoints
